decorator for mainpage