removing cancan and rolify and refac some codes