add check for input metrics
parse location.hash only if not empty and remove the default page