updates on admin and adding save function in component class