using cake inbuilt methods to generate dropdown