create card page style and function