added remove media action + added flash messages display + refactored css & js & views