removed comments and fixed active tab on refresh