added most funtions and installed devise features