add menu alignment and button auto raising