added admin controls and ip restriction