added admin features and some corresponding templates