added css transitions and de-bugged popstate