Change button color according to type of page