Hi alikatok,
Welcome to the HP Community! I will be happy to help assist with the power issues. Here is a link to a third-party site that will show you how to change what both the power button and closing the lid will do. Here is an HP document for Resolving Sleep and Hibernate issues, not everything is going to apply but take a look at the last section Standard steps to resolve most sleep suspend problems. Let me know how it goes.
Thank you,