Frontend Code for REPLME