Made hadnshake form dynamic